package com.awesome.uidemo.customview.systemview;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.awesome.uidemo.R;

public class CustomScrollViewActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_view_scroll_view);
        ScrollerSmoothView scrollerSmoothView = findViewById(R.id.scroller_smooth_view);
        scrollerSmoothView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                scrollerSmoothView.smoothScrollTo(-100,-200);
            }
        });
    }
}